package com.feri.fc.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 陪诊师积分变动表(PhysicianScore)表实体类
 *
 * @author Feri
 * @since 2024-09-20 09:57:12
 */
@Data //简化类 自动生成 getter和 setter 和 toString
@TableName("t_physician_score") //标记对应的表名
@NoArgsConstructor
public class PhysicianScore {
    //序号，主键
    private Integer id;
    //陪诊人表ID
    private Integer pid;
    //类型
    private String type;
    //原因
    private String reason;
    //积分
    private Integer score;
    //创建时间
    private Date createTime;

    public PhysicianScore(Integer pid, String type, String reason, Integer score) {
        this.pid = pid;
        this.type = type;
        this.reason = reason;
        this.score = score;
        this.createTime=new Date();
    }
}